package com.zhny.project.txt.indexset.mapper;

import com.zhny.project.txt.indexset.domain.TxtIndexset;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * TXT指标集Mapper接口
 *
 * @author yanqun
 * @date 2019-12-10
 */
public interface TxtIndexsetMapper
{
    /**
     * 查询TXT指标集
     *
     * @param indexsetKey TXT指标集ID
     * @return TXT指标集
     */
    public TxtIndexset selectTxtIndexsetById(String indexsetKey);

    /**
     * 查询TXT指标集列表
     *
     * @param txtIndexset TXT指标集
     * @return TXT指标集集合
     */
    public List<TxtIndexset> selectTxtIndexsetList(TxtIndexset txtIndexset);

    /**
     * 新增TXT指标集
     *
     * @param txtIndexset TXT指标集
     * @return 结果
     */
    public int insertTxtIndexset(TxtIndexset txtIndexset);

    public int deletesTxtHistory(String datasetKey);

    public int updateHistorydele(String datasetKey);

    public TxtIndexset seleEnglishName(String indexsetKey);

    public  List<TxtIndexset> seleindexsetKey(String datasetKey);

    public List<LinkedHashMap<String, Object>>  deleteTxtIndexset(String sql);

    public List<LinkedHashMap<String, Object>>  rowcountsort(String sql);
    public List<LinkedHashMap<String, Object>>  selectsetsql(String sqlz);
    public int  dewledatamapper(String sqlz);

    /**
     * 修改TXT指标集
     *
     * @param txtIndexset TXT指标集
     * @return 结果
     */
    public int updateTxtIndexset(TxtIndexset txtIndexset);

    /**
     * 删除TXT指标集
     *
     * @param indexsetKey TXT指标集ID
     * @return 结果
     */
    public int deleteTxtIndexsetById(String indexsetKey);


    /**
     * 批量删除TXT指标集
     *
     * @param indexsetKeys 需要删除的数据ID
     * @return 结果
     */
    public int deleteTxtIndexsetByIds(String[] indexsetKeys);

    public  List<TxtIndexset> selectStoreById(String datasetKey);
    public TxtIndexset selectDisposeFlag(String indexsetKey);

    public List<TxtIndexset> seleEnglishNameByDatasetKey(String datasetKey);

    public List<TxtIndexset> selectSyllable(String datasetKey);
    public List<TxtIndexset> selectQuality(String datasetKey);

    public int selectMun(String datasetKey);

    public List<TxtIndexset> selectTxtIndexsetkeyByDatasetKey(String datasetKey);

    public Integer searchEstimate(String indexsetKey);


}
